//===================================================================
//
// Server program entry file.
//
//===================================================================

#include "../../core/src/log.h"
#include "server.h"

int main(int argc, char **argv)
{
    boost::shared_ptr< Server > server;

    Log::init(Log::DES_CONSOLE | Log::DES_FILE);

    LOG_TRACE() << "Ashenvale game room server.";

    server = boost::shared_ptr< Server >(new Server());

    if(!server.get()){
        LOG_ERROR() << "Create server instance: " << strerror(ENOMEM);
        return -1;
    }

    return server->start(argc, argv);
}
